package loc_enum

// 区域-工程报备-位置信息点类型
type locEgnReportPointType int

var LocEgnReportPointType locEgnReportPointType

// 起点
func (c *locEgnReportPointType) StartPoint() int {
	return 1
}

// 终点
func (c *locEgnReportPointType) StopPoint() int {
	return 2
}

// 修车点
func (c *locEgnReportPointType) RepairShopPoint() int {
	return 3
}

// 停车点
func (c *locEgnReportPointType) ParkingSpotPoint() int {
	return 4
}

// 车辆检测站
func (c *locEgnReportPointType) VehicleInspectionStation() int {
	return 5
}

// 加油站
func (c *locEgnReportPointType) GasStation() int {
	return 6
}

func (c *locEgnReportPointType) ToText(value int) string {
	switch value {

	case 1:
		return "起点"

	case 2:
		return "终点"

	case 3:
		return "修车点"

	case 4:
		return "停车点"

	case 5:
		return "车辆检测站"

	case 6:
		return "加油站"

	}
	return ""
}

func (c *locEgnReportPointType) ToValue(text string) int {
	switch text {

	case "起点":
		return 1

	case "终点":
		return 2

	case "修车点":
		return 3

	case "停车点":
		return 4

	case "车辆检测站":
		return 5

	case "加油站":
		return 6

	}
	return 0
}
